package com.song.eduservice.service;

import com.song.eduservice.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.song.eduservice.entity.chapter.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author song
 * @since 2020-03-29
 */
public interface EduChapterService extends IService<EduChapter> {

    /**
     * 查询课程大纲列表
     * @return
     */
    List<ChapterVo> findAllChapterById(String course_id);


    /**
     * 检查章节中是否有小节
     * @param chapterId
     * @return
     */
    int checkChapter(String chapterId);

    /**
     * 根据课程id查询章节和小节
     * @param courseId
     * @return
     */
    List<ChapterVo> getChapterVideoByCourseId(String courseId);
}
